import App from './App.vue'

import { setupVab } from '~/library'
import { setupStore } from '/@/store'
import { setupRouter } from '/@/router'
import ElementPlus from 'element-plus'



// element plus 字体图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { _Message } from './utils/message'
const app = createApp(App)
app.use(ElementPlus)
// element plus 字体图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// 全局吐司提示
app.config.globalProperties.$Message = _Message

setupVab(app)
setupStore(app)
setupRouter(app)
  .isReady()
  .then(() => app.mount('#app'))
